#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests


class MeizituService:


    def downImgsByPage(self, page):
        base_url=f'https://www.tupianzj.com/meinv/xinggan/list_176_{page}.html'
        print(base_url)
        html=self.get_res(base_url)
        print(html)

    def get_res(self,url):
        headers = {
            'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36'
        }
        resp1 = requests.get(url, headers=headers, timeout=30_0000)
        resp1.encoding = 'utf-8'
        result = resp1.text
        return result
